//
//  XiaoFeiSQCell01.m
//  PosApp
//
//  Created by 刘萍 on 2018/8/31.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "XiaoFeiSQCell01.h"

@implementation XiaoFeiSQCell01
- (void)setModel:(PosModel *)model {
    self.CellPersonNumb.text = [NSString stringWithFormat:@"%@",model.pos_receive];
    [self.CellImage sd_setImageWithURL:[NSURL URLWithString:model.pos_pic] placeholderImage:[UIImage imageNamed:@"MainZWImage"]];
    NSString * str = @"%";
    if ([model.pos_three isEqual:@"1"]) {
        self.CellLabel01.text = [NSString stringWithFormat:@"%@%@+3元/笔",model.pos_rate,str];
    }else{
        self.CellLabel01.text = [NSString stringWithFormat:@"%@%@/笔",model.pos_rate,str];
    }
    
    if ([model.pos_md isEqual:@"1"]) {
        self.ShowImage.hidden = NO;
        self.ShowLabel.hidden = NO;
    }else{
        self.ShowImage.hidden = YES;
        self.ShowLabel.hidden = YES;
    }
    self.CellLabel02.text = [NSString stringWithFormat:@"%@%@",model.pos_vipreturn,str];
    self.CellLabel03.text = [NSString stringWithFormat:@"%@%@",model.pos_return,str];
    
//    self.CellLabel02.hidden = YES;
    self.CellLabel03.text = [NSString stringWithFormat:@"%@%@",model.pos_vipreturn,str];
    
    
    if ( model.pos_return.floatValue > 0) {
        [self.LBLPuTongRate setHidden:NO];
        [self.LBLPuTongTips setHidden:NO];
        self.LBLPuTongRate.text = [NSString stringWithFormat:@"%@%@",model.pos_return,str];

    }else{
        [self.LBLPuTongRate setHidden:YES];
        [self.LBLPuTongTips setHidden:YES];
    }
}

- (IBAction)ClickOnBtnOfXiaoFeiSQCell01:(id)sender {
    [self.delegate ClickOnBtnFromXiaoFeiSQCell01ToLookNewsWithCellID:self.tag];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
